home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: Help with sin() - big problem
- Date: 5 Mar 1996 12:02 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <5MAR199612023185@erich.triumf.ca>
- References: <4hhusi$49i@sunburst.ccs.yorku.ca>
- NNTP-Posting-Host: erich.triumf.ca
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <4hhusi$49i@sunburst.ccs.yorku.ca>, yu114405@yorku.ca (Naftali Sturm) writes...
- >I have a big problem.
- >I am making a math and trigonometry program which, one of its functions
- >is to compute the sine of a number.
- > The way I did it was.
- > result = sin(numb);
- >
- >result and num are both float's.
- > The problem is that when numb is 1.0, the
- >program gives me .84147 , and when numb is 45.0
-
- The trig functions expect the angle to be speicfied in radians, not degrees.
-
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
-
-
-
-
- or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
-
-